home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / x3270 / unix_files / Examples / ibm_hosts < prev    next >
Encoding:
Text File  |  2005-09-29  |  1.2 KB  |  31 lines

  1. # Sample x3270 hosts file
  2.  
  3. # name        type        hostname    login macro or string
  4.  
  5. # Simple entry, no name translation.  This is usually done just so that the
  6. # name appears on the "Connect" menu.
  7. vmsys        primary        vmsys
  8.  
  9. # A simple entry that creates a shorthand name for a complex hostname.
  10. vm        primary        ibm_server.bigbucks.com
  11.  
  12. # An entry that enters a username and password into a VM login screen.
  13. vm-macro    primary        vmsys        String(myuser) Tab() String(mypasswd) Enter()
  14.  
  15. # An old-style entry for the above, using backslash sequences embedded in a
  16. # string.  Note that since the "login macro or string" doesn't look like an
  17. # x3270 action, x3270 takes it as a parameter to the String() action.
  18. vm-old        primary        vmsys        myuser\tmypasswd\n
  19.  
  20. # An entry that calls a script.
  21. tso-ksh        primary        vtamsys        Script(child_script.ksh)
  22.  
  23. # An entry that calls the same script with different parameters
  24. tso-ksh        primary        vtamsys        Script(child_script.ksh,ibm-host2,VTAM,TSO,USER2,OTHERPASS)
  25.  
  26. # An example of specifying an alternate port.
  27. playback    primary        localhost/4001
  28.  
  29. # An example of using the Expect() action to interact with an ASCII host.
  30. unixbox        primary        unixbox        Expect(ogin:) String(myuser) Enter() Expect(ssword:) String(mypasswd) Enter()
  31.